package com.itheima.homework;

import java.io.FileWriter;
import java.io.IOException;

public class demo03 {
    public static void main(String[] args) throws Exception {
        String[] arr = {"登鹳雀楼","王之涣","白日依山尽，",
                "黄河入海流。","欲穷千里目，","更上一层楼。"};
        FileWriter fw = new FileWriter("shi.txt");
        for (String s : arr) {
            fw.write(s+System.lineSeparator());
        }
        fw.close();
    }
}
